.class Lcom/waiqin365/base/login/cu;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/base/login/cu;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public dispatchMessage(Landroid/os/Message;)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/base/login/cu;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/LoginModifyPassActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->dismissProgressDialog()V

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->a(Lcom/waiqin365/base/login/LoginModifyPassActivity;)V

    iget v1, p1, Landroid/os/Message;->what:I

    const/16 v2, 0x8

    if-ne v1, v2, :cond_0

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/base/login/b/a/bh;

    invoke-virtual {v1}, Lcom/waiqin365/base/login/b/a/bh;->b()Z

    move-result v2

    if-eqz v2, :cond_5

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/base/login/b/a/bh;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const v1, 0x7f080553

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    new-instance v1, Landroid/content/Intent;

    const-string/jumbo v2, "com.waiqin365.modifypassword"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "REGISTER_REQUEST_USER"

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    const-string/jumbo v4, "phoneNumber"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v2, "REGISTER_REQUEST_PASS"

    invoke-static {v0}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->b(Lcom/waiqin365/base/login/LoginModifyPassActivity;)Landroid/widget/EditText;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->sendBroadcast(Landroid/content/Intent;)V

    invoke-static {}, Lcom/waiqin365/base/login/af;->a()Lcom/waiqin365/base/login/af;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/af;->b()V

    goto :goto_0

    :cond_2
    iget-object v1, v1, Lcom/waiqin365/base/login/b/a/bh;->d:Ljava/lang/String;

    if-eqz v1, :cond_3

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_4

    :cond_3
    const v1, 0x7f08013b

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/LoginModifyPassActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_4
    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_5
    iget v1, v1, Lcom/waiqin365/base/login/b/a/bh;->b:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto :goto_0
.end method
